@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
  font-family: ecCandy;
  src: url("./assets/font/candyF.ttf");
}

@font-face {
  font-family: ecSTHeiti;
  src: url("./assets/font/STHeiti-Light-3.ttc");
}

:root {
  @apply text-base font-normal font-sans;
  font-family: ecSTHeiti;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  min-width: 320px;
  @apply min-h-screen;
}

h1 {
  @apply text-5xl leading-4;
}

h2{
  @apply text-xl;
}

.button {
  @apply bg-blue-500 rounded text-gray-50 font-bold p-1
    transition-all duration-300;
}
.button:hover{
  @apply ring-4;
}
/*.button:focus,*/
/*.button:focus-visible{*/
/*  @apply ring-4;*/
/*}*/

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
